package org.dromara.config.service;

import org.dromara.config.domain.KyWarehouseHasZones;
import org.dromara.config.domain.vo.KyWarehouseHasZonesVo;
import org.dromara.config.domain.bo.KyWarehouseHasZonesBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 仓库库位Service接口
 *
 * @author kuyu
 * @date 2023-12-29
 */
public interface IKyWarehouseHasZonesService {

    /**
     * 查询仓库库位
     */
    KyWarehouseHasZonesVo queryById(Long id);

    /**
     * 查询仓库库位列表
     */
    TableDataInfo<KyWarehouseHasZonesVo> queryPageList(KyWarehouseHasZonesBo bo, PageQuery pageQuery);

    /**
     * 查询仓库库位列表
     */
    List<KyWarehouseHasZonesVo> queryList(KyWarehouseHasZonesBo bo);

    /**
     * 新增仓库库位
     */
    Boolean insertByBo(KyWarehouseHasZonesBo bo);

    /**
     * 修改仓库库位
     */
    Boolean updateByBo(KyWarehouseHasZonesBo bo);

    /**
     * 校验并批量删除仓库库位信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
